package com.bzframework.pro.entity;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import org.hswebframework.ezorm.rdb.mapping.annotation.ColumnType;
import org.hswebframework.web.api.crud.entity.GenericEntity;
import org.hswebframework.web.crud.annotation.EnableEntityEvent;

import javax.persistence.Column;
import javax.persistence.Table;
import java.sql.JDBCType;

/**
 * @Author bingzhong
 * @Date 2025/3/21 10:46
 * @Description 客户沟通记录
 */
@Table(name = "beiya_communicate_record")
@Getter
@Setter
@Schema(description = "客户沟通记录")
@EnableEntityEvent //开启实体类crud事件
public class CommunicateRecordEntity extends GenericEntity<String> {

    @Column
    @Schema(description = "意向客户id")
    private String customer_id;

    @Column
    @Schema(description = "学员id")
    private String studentuser_id;

    @Column
    @Schema(description = "创建时间，格式yyyyMMddHHmmss")
    private String createtime;

    @Column
    @Schema(description = "更新时间，格式yyyyMMddHHmmss")
    private String updatetime;

    @Column
    @Schema(description = "沟通人id")
    private String employeeuser_id;

    @Column
    @Schema(description = "沟通人名称")
    private String employeeName;

    @Column
    @Schema(description = "探马平台员工id")
    private String tanMaEmployeeId;

    @Column
    @ColumnType(javaType = String.class, jdbcType = JDBCType.LONGVARCHAR)
    @Schema(description = "沟通人id")
    private String content;

    @Column
    @Schema(description = "沟通类型id")
    private String mode;

    @Column
    @Schema(description = "是否有效沟通，0否，1是")
    private Integer isvalid;

    @Column
    @Schema(description = "下次跟进类型id")
    private String nextmode;

    @Column
    @Schema(description = "下次跟进日期，格式yyyyMMdd")
    private String nextdate;

    @Column
    @Schema(description = "意向级别，1~5")
    private Integer willlevel;

    @Column
    @Schema(description = "意向客户状态id")
    private String customerstatus;

    @Column
    @Schema(description = "是否承诺到访，0否，1是")
    private String isinvite;

    @Column
    @Schema(description = "诺到访类型id")
    private String visittype;

    @Column
    @Schema(description = "诺到访日期，格式yyyyMMdd")
    private String invitedate;

    @Column
    @Schema(description = "是否到访，0否，1是")
    private Integer isvisit;

    @Column
    @Schema(description = "到访日期")
    private String visitdate;


}
